<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
	    <meta name="apple-mobile-web-app-capable" content="yes">
	    <meta name="apple-mobile-web-app-status-bar-style" content="black">
	    <meta name = "format-detection" content = "telephone=no">
	    	
	    <link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp.css${data:buildversion}"/>
		<link rel="stylesheet" href="${data:dependencies.attendance}/css/checkin.css${data:buildversion}"/>
    	<link rel="stylesheet" href="${data:dependencies.attendance}/css/checkinIcon.css${data:buildversion}"/>
    	<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-listView.css${data:buildversion}">
		<link rel="stylesheet" href="${data:dependencies.attendance}/css/attendanceSetting.css${data:buildversion}"/>
	</head>
	<body>
		${data:initScript}
		<div class="cmp-content position_relative">
			<div id="listContainer" class="cmp-scroll-wrapper setting-list-container">
	            <div class="cmp-scroll">
	            	<ul class="cmp-table-view"></ul>
	            </div>
	        </div>
		</div>
		
		<footer class="cmp-bar cmp-bar-tab cmp-bar-footer submit-footer  before-line cmp-comment-footer">
			<div class="container-footer">
				<button type='button' id="newBtn" class='cmp-btn cmp-btn-primary2 cmp-btn-width40'><i18n key="Attendance.label.add"></i18n></button>
			</div>
		</footer>
		
		<!--模板-->
		<script type="text/html" id="pending_li_tpl">
	        <% for(var i = 0,len = this.length;i < len; i++){ %>
	        <% var obj = this[i];%>
			<li id="<%=obj.id%>" class="cmp-table-view-cell">
				<div class="cmp-slider-right cmp-disabled">
					<a class="cmp-btn cmp-btn-red list-delete"><i18n key="Attendance.label.delete"></i18n></a>
				</div>
				<div class="cmp-slider-handle">
					<a class="cmp-navigate-right">
						<div class="cell-item">
							<span class="see-icon-v5-common-location-fill icon-map"></span>
							<span><%=obj.name%></span>
							<div class="display_inline-block">
								<%if(obj.available){%>
								<span class="cmp-badge cmp-badge-purple"><i18n key="Attendance.label.enable"></i18n></span>
								<%}else{%>
								<span class="cmp-badge cmp-badge-purple noAttend"><i18n key="Attendance.label.disabled"></i18n></span>
								<%}%>
							</div>
						</div>
						<div class="cell-item remark cmp-ellipsis"><i18n key="Attendance.label.remarks"></i18n><%=(obj.remark ? obj.remark.escapeHTML() : "")%></div>
					</a>
				</div>
			</li>
	        <% } %>
    	</script>
		
		<!--js引入-->
		<script src="${data:dependencies.attendance}/i18n/attendance_zh_CN.js${data:buildversion}"></script>
		<script src="${data:dependencies.cmp}/js/cmp-i18n.js${data:buildversion}"></script>
		<script>
			var $buildversion = '${data:buildversion}';
			var attendancePath = "${data:dependencies.attendance}";
			var cmpPath = "${data:dependencies.cmp}";
			var commonPath = "${data:dependencies.commons}";
		    cmp.i18n.init("${data:dependencies.attendance}/i18n/","attendance",function(){
		    	document.title = cmp.i18n("Attendance.label.adressList");
		    });
		</script>
		${data:cordova}
		<script type="text/javascript" src="${data:dependencies.cmp}/js/cmp.js${data:buildversion}"></script>
        <script type="text/javascript" src="${data:dependencies.cmp}/js/cmp-app.js${data:buildversion}"></script>
        <script type="text/javascript" src="${data:dependencies.cmp}/js/cmp-imgCache.js${data:buildversion}"></script>
        <script type="text/javascript" src="${data:dependencies.cmp}/js/cmp-listView.js${data:buildversion}"></script>
		<script type="text/javascript" src="${data:dependencies.attendance}/js/attendance-jssdk.js${data:buildversion}"></script>
		<script type="text/javascript" src="${data:dependencies.jssdk}${data:buildversion}" id="__jsdktag"></script>
		<script type="text/javascript" src="${data:dependencies.attendance}/js/attendanceCommon.js${data:buildversion}"></script>
		<script type="text/javascript" src="${data:dependencies.attendance}/js/attendanceSettingList.js${data:buildversion}"></script>
	</body>
</html>
